package com.example.design.mediator;

/**
 * @className: Mediator
 * @description: 抽象中介者对象
 * @author hej
 * @date 2022/11/4 17:24
 */
public interface Mediator {
    /**
     * 将同事对象注册到中介者类中
     * @param colleagueName
     * @param colleage
     */
    abstract void register(String colleagueName, Colleague colleage);

    /**
     * 接收由具体的同事对象发出的消息
     * @param stateChange
     * @param colleagueName
     */
    abstract void getMessage(int stateChange,String colleagueName);

    /**
     * 发送消息
     */
    abstract void sendMessage();
}
